/**
 * @Author: 健聪
 * @Description: 循环语句 for
 * @Date: 2024/1/11
 */
void main() {
  var list = [1, 2, 3, 4, 5];

  for (var index = 0; index < list.length; index++) {
    print(list[index]);
  }

  print("----------");

  for(var item in list){
    print(item);
  }
}
